from abc import ABCMeta, abstractmethod


class IParagraphAnalysis(metaclass=ABCMeta):

    @abstractmethod
    def start(self,conn,year,plt):
        pass

    @abstractmethod
    def plot(self, result, plt):
        '''
        画出图像
        :param df:
        :param plt:
        :return:
        '''
        pass

    @abstractmethod
    def getData(self,result):
        '''
        获取数据数组
        :return:
        '''
        pass

    @abstractmethod
    def getHeight(self):
        '''
        获取该段落的高度
        :return:
        '''
        pass
